package spec.shiqilin.clazz.inherit.Ball;

import spec.shiqilin.clazz.inherit.Ball.Ball1;

public class Basketball extends Ball1 {

    String zouBu;

    public Basketball(String ballName,String ballSize, String ballMaterial,String ballWeight,String ballSuitable){
        super(ballName,ballSize,ballMaterial,ballWeight,ballSuitable);

    }
    public Basketball(String ballName,String ballSize, String ballMaterial,String ballWeight,String ballSuitable,String zouBu){
        super(ballName,ballSize,ballMaterial,ballWeight,ballSuitable);
        this.zouBu=zouBu;
    }
    /**
     * 正式比赛
     * @param ydy   运动员数量
     * @param cp   裁判人数
     * @return
     */

    String play(int ydy,int cp){
        String s=super.play();
        return s+",比赛运动员人数"+ydy+",裁判人数"+cp;
    }

    /**
     * 小场子娱乐
     * @param ydy   运动员数量
     * @return
     */
    String play(int ydy){
        String s=super.play();
        return s+",小场运动员人数"+ydy;
    }
}